    <div class="main-content">
    	<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
				$(document).ready(function () {

				 });
			</script>
	
			<!-- .breadcrumb -->
		</div>
		
        <!-- Main content -->
    <div class="page-content">
        <div class="page-header">
			<h1>洗车店添加</h1>
		</div>
        <div class="row">
			<div class="col-xs-12">
			<?php if (validation_errors()!=''){?>
	           <div id="info_msg" class="alert alert-danger"><?php echo validation_errors();?></div>
	        <?php }?>
	            <!-- general form elements disabled -->
	                <form id="usrform" enctype="multipart/form-data" role="form" action="<?php echo base_url().'admin/gasstation/add_shop';?>" method="post"> 
	                	<div class="box-body" style="display: inline-block;width: 100%">
                        <div class="form-group col-xs-6">
				            <label>名称：</label>
				            <input name="shop_name" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required" />
			            </div>
			            <div class="form-group col-xs-6">
				            <label>图片：</label>
				            <input name="shop_img" type="file" style="border:0;" class="form-control" placeholder="输入 ..." value="" check-type="required" />
			            </div>
			            <div class="form-group col-xs-6">
					            <label>城市：</label>
					            <select name="city" style="width: 100%;" check-type="required" >
		                    	    <option value="">请选择</option>
		                    	    <option value="370600">烟台市</option>
		                    	    <option value="370200">青岛</option>
		                    	</select>
				            </div>
			            <div class="form-group col-xs-6">
				            <label>地址：</label>
				            <input name="addresses" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>电话：</label>
				            <input name="shop_phone" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>评分：</label>
				            <input name="grade" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>已售数量：</label>
				            <input name="sold_out" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>百度地图经度：</label>
				            <input name="bd_longitude" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required">
			            </div>	
			            <div class="form-group col-xs-6">
				            <label>百度地图纬度：</label>
				            <input name="bd_latitude" type="text" class="form-control" placeholder="输入 ..." value="" check-type="required">
			            </div>				    
	                	</div><!-- /.box-body -->
	                	<div class="clearfix form-actions">
						<div class="col-md-offset-3 col-md-9">
							<button id="btnSubmit" class="btn btn-info" type="submit">
								<i class="icon-ok bigger-110"></i>
								保存
							</button>

							&nbsp; &nbsp; &nbsp;
							<a class="btn" href="<?php echo base_url()."admin/gasstation/shops"?>">
								<i class="icon-undo bigger-110"></i>
								返回
							</a>
						</div>
					</div>
	                </form>
	        </div>
		</div>
    </div>
</div>
<script type="text/javascript">
$("#usrform").validation();
//保存
$("#btnSubmit").on('click',function(event){
  // 2.最后要调用 valid()方法。
  if ($("#usrform").valid()==false){
    return false;
  }
});
</script>